# Contributor: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
# Maintainer:
pkgname=py3-eventlet
pkgver=0.33.3
pkgrel=2
pkgdesc="Python library for seamless coroutine-based concurrency"
url="https://eventlet.net/"
arch="noarch"
license="MIT"
depends="
	py3-dnspython
	py3-greenlet
	py3-httplib2
	py3-openssl
	py3-psycopg2
	py3-six
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-tox py3-nose"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-$pkgver.tar.gz
	skip-broken-tests.patch
	"
builddir="$srcdir"/eventlet-$pkgver

# secfixes:
#   0.32.0-r0:
#     - CVE-2021-21419

build() {
	python3 setup.py build
}

check() {
	nosetests -sv tests
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
667a42f9cecc9b228ad84dc1dc95ac377b56495174e474acf1cced4f1ab1f3257d19df26b0fb81452269261d92016e6540b8cf71f4f174967145648831f61152  eventlet-0.33.3.tar.gz
c01f0d89c9d681f30b68a78c9a980788637d42d450e89fab7f1ac83313e9f07fdcc94ca6fab0ae613445e8147b1e9a9389ab5b61cb0930ab643786ec61193681  skip-broken-tests.patch
"
